<?php
if ( !defined( "IN_OP" ) )
{
    exit( "You can't access this file directly..." );
}
define( "IN_CHK_CEN", 1 );
$tabs_menu_list = "";
$tab_container_list = "";
$show_onLine_num_flag = 0;
include_once( "class/function_3d.php" );
if ( $g_init_mode_6h )
{
    $tabs_menu_list .= "<li {$g_only_6h}><a href=\"#tab0\" class=\"tabcolor0\">六合彩</a></li>";
    $tab_container_list .= "<div id=\"tab0\" class=\"tab_content\">".( "<div class=\"menuLv02\">" ).posToMenu( "登出", "?op=core&fp=logout", "_top", "logo" )."</div>";
    $tab_container_list .= "<div class=\"menuLv03\">".posToMenu( "操盘", "?op=centralize&fp=op_cen&cen=now_6h", "mainFrame", "now" ).posToMenu( "开奖", "?op=centralize&fp=op_cen&cen=history&gametype=0", "mainFrame", "hist" ).posToMenu( "说明", "?op=centralize&fp=op_cen&cen=list&gametype=0", "mainFrame", "cen_list" )."</div>";
    $tab_container_list .= "</div>";
}
if ( $g_init_mode_3d )
{
    foreach ( $g_gametype_3d as $i => $val )
    {
        if ( $g_menu_enabled[$i] == 0 || !$i )
        {
            continue;
        }
        $tabs_menu_list .= $g_menu_enabled[$i] == 1 ? $g_menu_list[$i] : "";
        $pg = $g_gametype_3d[$i]['pg'];
        $tab_container_list .= "<div id=\"tab{$i}\" class=\"tab_content\">"."<div class=\"menuLv02\">".posToMenu( "登出", "?op=core&fp=logout", "_top", "logo" )."</div>"."<div class=\"menuLv03\">".posToMenu( "操盘", "?op=centralize&fp=op_cen&cen=now_3d&gametype={$i}", "mainFrame", "now" ).posToMenu( "开奖", "?op=centralize&fp=op_cen&cen=history_3d&gametype={$i}", "mainFrame", "hist" ).posToMenu( "说明", "?op=centralize&fp=op_cen&cen=list&gametype={$i}", "mainFrame", "cen_list" )."</div>"."</div>";
    }
}
$tmpArr = array();
foreach ( $g_gametype_3d as $gameid => $val )
{
    $tmpArr[] = QuotedStr( "op.php?op=centralize&fp=login".( 0 < $gameid ? "_3d" : "" )."&gametype={$gameid}" );
}
$linkArr = implode( ",", $tmpArr );
$ui->set( array( "tabs_menu_list" => $tabs_menu_list, "tab_container_list" => $tab_container_list, "linkArr" => $linkArr, "myInfo" => "【hi, ".$aclname[$curruser['acl']]." ".$curruser['account']."】 ", "showOnLineNum" => $show_onLine_num_flag ? "<span class=\"onlineNum\"><b id=\"myOnlineNum\">线上人数</b>:&nbsp;<b class=\"onlineNum2\">0</b>&nbsp;</span>" : "", "showNolineNumJS" => $show_onLine_num_flag ? "myTimeRenewONum();" : "" ) );
?>